package com.baiyapeng.code.service;

import com.baiyapeng.code.dao.TbLogMapper;
import com.baiyapeng.code.model.TbLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <b>日志服务</b><br/>
 *
 * @author baiyapeng
 * @since 1.0.0
 */
@Service
@Slf4j
public class LogService {

    @Autowired
    private TbLogMapper tbLogMapper;

    /**
     * <p>插入日志</p>
     *
     * @param tbLog 日志
     * @return
     */
    public int addLog(TbLog tbLog) {
        return tbLogMapper.insertSelective(tbLog);
    }
}
